package com.tian.demo01.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName emp
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("员工信息")
public class Emp implements Serializable {
    @TableId(value = "empno",type = IdType.AUTO)
    @ApiModelProperty("员工编号")
    private Integer empno;

    @ApiModelProperty("员工姓名")
    private String ename;

    @ApiModelProperty("员工工作")
    private String job;

    @ApiModelProperty("领导编号")
    private Integer mgr;

    @ApiModelProperty("员工入职日期")
    private Date hiredate;

    @ApiModelProperty("员工工资")
    private BigDecimal sal;

    @ApiModelProperty("员工奖金")
    private BigDecimal comm;

    @ApiModelProperty("部门编号")
    private Integer deptno;

    @TableField(exist = false)
    private Dept dept;

    private static final long serialVersionUID = 1L;
}